package com.maozzi.api.auth.properties;

import com.maozzi.api.auth.constant.AuthConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 登录拦截参数
 *
 * @author maozi
 */
@Data
@Component
@ConfigurationProperties(prefix = AuthConstant.AUTH_PREFIX)
public class AuthProperties implements Serializable {
    /**
     * 缓存key的前缀
     */
    private String prefixKey;

    /**
     * 缓存过期时间，默认7天
     */
    private Long timeout = 604800L;

    /**
     * 主机
     */
    private String host;

    /**
     * 查询用户信息URL
     */
    private String userInfoUrl;

    /**
     * 查询acl用户信息URL
     */
    private String aclUserInfoUrl;
}
